<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use \think\facade\Route;

//前端页面显示
Route::get("/","index/Index/index");
Route::get('/hello','index/Index/hello');

//后台管理
//管理员模块
Route::get("/admin","admin/Index/index");
Route::get("/admin/login","admin/Sadmin/login");

//产品模块
Route::get("/admin/product","admin/Product/ilist");//产品列表
Route::get("/admin/product/add","admin/Product/add");//添加产品

//api数据管理
//通用
Route::get("/api/clearcache","api/Base/clearCache");//清除缓存
//管理员
Route::post("/api/chklogin","api/Sadmin/chkLogin");//管理员登录验证

//产品
Route::get("/api/product/ilist","api/Product/dataIlist");
